class UserInfoModel {
  UserInfoModel({
      this.token, 
      this.refreshToken, 
      this.displayName, 
      this.profileUrl, 
      this.level, 
      this.credibility, 
      this.fans, 
      this.follow, 
      this.collection, 
      this.cardQty, 
      this.postQty, 
      this.bonusPoints, 
      this.coupons,});

  UserInfoModel.fromJson(dynamic json) {
    if(json['token']!=null&&json['token']!=""){
      token = json['token'];
    }
    if(json['refreshToken']!=null&&json['refreshToken']!=""){
      refreshToken = json['refreshToken'];
    }
    displayName = json['displayName'];
    profileUrl = json['profileUrl'];
    level = json['level'];
    credibility = json['credibility'];
    fans = json['fans'];
    follow = json['follow'];
    collection = json['collection'];
    cardQty = json['cardQty'];
    postQty = json['postQty'];
    bonusPoints = json['bonusPoints'];
    coupons = json['coupons'];
  }
  String? token;
  String? refreshToken;
  String? displayName;
  String? profileUrl;
  int? level;
  int? credibility;
  int? fans;
  int? follow;
  int? collection;
  int? cardQty;
  int? postQty;
  int? bonusPoints;
  int? coupons;

  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    map['token'] = token;
    map['refreshToken'] = refreshToken;
    map['displayName'] = displayName;
    map['profileUrl'] = profileUrl;
    map['level'] = level;
    map['credibility'] = credibility;
    map['fans'] = fans;
    map['follow'] = follow;
    map['collection'] = collection;
    map['cardQty'] = cardQty;
    map['postQty'] = postQty;
    map['bonusPoints'] = bonusPoints;
    map['coupons'] = coupons;
    return map;
  }

}